﻿namespace Microsoft.SharePoint.Client
{
    using System;
    using System.Resources;
    using System.Reflection;

    public static class Resources
    {
        private const string ResourceFileId = "Microsoft.SharePoint.Client.Silverlight.Runtime";
        private static ResourceManager s_resourceManager = new ResourceManager("Microsoft.SharePoint.Client.Silverlight.Runtime", Assembly.GetExecutingAssembly());

        public static string GetString(string resourceId)
        {
            return s_resourceManager.GetString(resourceId);
        }

        public static string GetString(string resourceId, params object[] args)
        {
            return string.Format(s_resourceManager.GetString(resourceId), args);
        }
    }
}

